package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.CusPatrolParam;
import com.xinsoft.entity.po.CusPatrol;
import com.xinsoft.entity.vo.CusPatrolDetailVo;
import com.xinsoft.entity.vo.CusPatrolDeviceVo;

import java.util.List;

/**
* @author lijie
* @description 针对表【cus_patrol(巡检)】的数据库操作Mapper
* @createDate 2023-06-21 09:08:12
* @Entity com.xinsoft.entity.po.CusPatrol
*/
public interface CusPatrolMapper extends BaseMapper<CusPatrol> {

    List<CusPatrolDetailVo> getListItemByPatrolId(Integer id);

    IPage<CusPatrol> findListByParam(Page<CusPatrol> page, CusPatrolParam param);

    List<CusPatrolDetailVo> getDetailListByDeviceId(Integer deviceId, Integer patrolId);

    List<CusPatrolDeviceVo> getDeviceListByPatrolId(Integer patrolId);

    List<CusPatrolDetailVo> getTaskByDeviceId(Integer deviceId);
}




